package com.itheima.backend.mapper;

import com.itheima.backend.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper {


    List<User> getAllUsers();


    User getUserById(Integer id);


    void insertUser(User user);


    void deleteUserById(Integer id);

    User findByUsername(String username);

    Integer getUserIdByUsername(String username);


//    // 根据用户名查询用户信息
//    User getUserByUsername(String username);
}
